import React, { Component } from 'react';
import { withRouter } from 'react-router-dom'
import Uidetail from '../Ui/Uidetail'
import { get } from '@u/http'

@withRouter
class Detai extends Component {

    state={
        data:''
    }

    async componentDidMount(){
        let fid = this.props.location.state
        let result =await get({
            url:`/api/zuoye/baogao?fId=${fid}`
        })

        this.setState({
            data:result.data.baoGao
        })

    }

    render() {
        return (
            <Uidetail {...this.state}></Uidetail>
        );
    }
}

export default Detai;